import request from '@/utils/request'

// 平衡调控-住户列表
export function listHousehold(data) {
  return request({
    url: '/balanceControl/listHousehold',
    method: 'post',
    data: data
  })
}

// 平衡调控-小区列表
export function listPlot(data) {
  return request({
    url: '/balanceControl/listPlot',
    method: 'post',
    data: data
  })
}

// 平衡调控-楼栋列表
export function listBuild(data) {
  return request({
    url: '/balanceControl/listBuild',
    method: 'post',
    data: data
  })
}

// 平衡调控-单元列表
export function listBuildUnit(data) {
  return request({
    url: '/balanceControl/listBuildUnit',
    method: 'post',
    data: data
  })
}

// 平衡调控-查询平衡调控数据设置详情
export function getDataSetInfo(data) {
  return request({
    url: '/controlSet/getDataSetInfo',
    method: 'post',
    data: data
  })
}

// 平衡调控-新增或修改数据设置
export function addOrUpdateControlSet(data) {
  return request({
    url: '/controlSet/addOrUpdateControlSet',
    method: 'post',
    data: data
  })
}

// 平衡调控-批量调控
export function batchControlSet(data) {
  return request({
    url: '/controlSet/batchControlSet',
    method: 'post',
    data: data
  })
}

//平衡调控-一键调控
export function oneKeyRegulation(data) {
  return request({
    url: '/controlSet/oneKeyRegulation',
    method: 'post',
    data: data
  })
}

// 平衡调控-锁定/解锁
export function lockOrUnlock(data) {
  return request({
    url: '/balanceControl/lockOrUnlock',
    method: 'post',
    data: data
  })
}
